import { ZYEventMgr } from "../../../common/manager/YLEventMgr";

/**
 * 
 * @author: xj.huang
 * @date: 2021/08/04 10:53:55
 */
export default class adModel {
    /**广告高度 */
    static bnnerheight: number = 110
    /**配置 */
    static gameConfig: Game.Config;
    /**当前格子广告显示状态 */
    static _gridShowType = false;
    /**当前banner广告显示状态 */
    static _bannerShowType = false;
    /**当前格子广告显示状态 */
    static set gridShowType(v) {
        this._gridShowType = v;
        ZYEventMgr.emit(ADEvent.SDK_BANNER_MODE, [this._gridShowType, this._bannerShowType])
    };
    /**当前格子广告显示状态 */
    static get gridShowType() {
        return this._gridShowType;
    };
    /**当前banner广告显示状态 */
    static set bannerShowType(v) {
        this._bannerShowType = v;
        ZYEventMgr.emit(ADEvent.SDK_BANNER_MODE, [this._gridShowType, this._bannerShowType])
    };
    /**当前格子广告显示状态 */
    static get bannerShowType() {
        return this._bannerShowType;
    };
    private static _initSessionInfo = {
        s: null,
        openid: null,
        user_code: null,
        is_new: true,
        reg_time: 0,
        is_black: 0,
        user_id: 0,
        s_update_time: null
    };
    /**获取登录状态信息-用于后面的验证 */
    static get initSessionInfo() {
        return this._initSessionInfo;
    }

    static set initSessionInfo(v) {
        this._initSessionInfo = v
    }
    private static _extData={};
    /**设置数据 extData*/
    static set extData(v){
        this._extData = v
    }
    /**获取数据 extData*/
    static get extData(){
        return this._extData
    }
    /**是否停止计时 */
    static stopBannerTimer = false

    /**是否强制隐藏广告 */
    static isFocreHiddeBanner = false;
}